package com.gd.iot.energy;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 启动类
 *
 * @author kris
 * @date Created at 2020/8/3 10:25
 */
@SpringBootApplication(scanBasePackages = "com.gd.iot.energy")
@MapperScan(basePackages = "com.gd.iot.energy.dao")
@Import(cn.hutool.extra.spring.SpringUtil.class)
@EnableCaching
@EnableTransactionManagement
@EnableAsync
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
    }
}
